package com.ehome.poct.base.dao.log.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.BaseEntityOld;
import lombok.Data;

import java.time.LocalDateTime;

//import io.swagger.annotations.ApiModelProperty;

/**
 * 设备日志同步记录表
 *
 * @author 路飞
 * @Date 2021-12-22 11:26
 */
@TableName("test_device_sync_log_record")
@Data
public class TestDeviceSyncLogRecordDO extends BaseEntityOld<TestDeviceSyncLogRecordDO> {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    /**
     * ID
     */
    @TableId
    private Long syncLogRecordId;
    /**
     * 设备编号
     */
    @TableField(value = "sno")
    private String sno;
    /**
     * 同步时间
     */
    @TableField(value = "sync_time")
    private LocalDateTime syncTime;
    /**
     * 同步文件数量
     */
    @TableField(value = "sync_log_num")
    private Integer syncLogNum;
    /**
     * 同步状态 0 同步中 1 打包上传中 2 同步完成 3 同步失败
     */
    @TableField(value = "sync_status")
    private Integer syncStatus;
    /**
     * oss 路径
     */
    @TableField(value = "oss_path")
    private String ossPath;
    /**
     * 0 默认文件/ 1文件夹
     */
    @TableField(value = "oss_path_type")
    private Integer ossPathType;
    /**
     * 桶块位置
     */
    @TableField(value = "bucket_name")
    private String bucketName;

    /**
     * 下载地址
     */
    @TableField(value = "url")
    private String url;

    @TableField("term_clinic_id")
    private Long termClinicId;

    @TableField("log_size")
    private Integer logSize;
}
